import request from '@/utils/request'
import { getToken } from '@/utils/auth'
// 导出excel
export function exportExcel(url, data) {
  return request({
    url,
    method: 'post',
    data,
    headers: {
      authorization: getToken()
    },
    responseType: 'blob',
    export: true,
    timeout: 20000
  })
}
